<!DOCTYPE html>
<html>
    <!-- title -->




<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" >
    <meta name="author" content="XShandow">
    <meta name="renderer" content="webkit">
    <meta name="copyright" content="XShandow">
    <meta name="keywords" content="XShandow | XShandow">
    <meta name="description" content="�����������">
    <meta name="Cache-Control" content="no-cache">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>[记]PKCS#1 RSA算法标准—OIDs类型标识定义 · XShandow&#39;s Studio</title>
    <style type="text/css">
    @font-face {
        font-family: 'Oswald-Regular';
        src: url("/font/Oswald-Regular.ttf");
    }

    body {
        margin: 0;
    }

    header,
    footer,
    .back-top,
    .sidebar,
    .container,
    .site-intro-meta,
    .toc-wrapper {
        display: none;
    }

    .site-intro {
        position: relative;
        z-index: 3;
        width: 100%;
        /* height: 50vh; */
        overflow: hidden;
    }

    .site-intro-placeholder {
        position: absolute;
        z-index: -2;
        top: 0;
        left: 0;
        width: calc(100% + 300px);
        height: 100%;
        background: repeating-linear-gradient(-45deg, #444 0, #444 80px, #333 80px, #333 160px);
        background-position: center center;
        transform: translate3d(-226px, 0, 0);
        animation: gradient-move 2.5s ease-out 0s 1;
    }

    @keyframes gradient-move {
        0% {
            transform: translate3d(-226px, 0, 0);
        }
        100% {
            transform: translate3d(0, 0, 0);
        }
    }

</style>

    <link rel="preload" href= /css/style.css?v=20180721 as="style" onload="this.onload=null;this.rel='stylesheet'" />
    <link rel="stylesheet" href= /css/mobile.css?v=20180721 media="(max-width: 980px)">
    
    <link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'" />
    
    <!-- /*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
/* This file is meant as a standalone workflow for
- testing support for link[rel=preload]
- enabling async CSS loading in browsers that do not support rel=preload
- applying rel preload css once loaded, whether supported or not.
*/ -->
<script>
(function( w ){
	"use strict";
	// rel=preload support test
	if( !w.loadCSS ){
		w.loadCSS = function(){};
	}
	// define on the loadCSS obj
	var rp = loadCSS.relpreload = {};
	// rel=preload feature support test
	// runs once and returns a function for compat purposes
	rp.support = (function(){
		var ret;
		try {
			ret = w.document.createElement( "link" ).relList.supports( "preload" );
		} catch (e) {
			ret = false;
		}
		return function(){
			return ret;
		};
	})();

	// if preload isn't supported, get an asynchronous load by using a non-matching media attribute
	// then change that media back to its intended value on load
	rp.bindMediaToggle = function( link ){
		// remember existing media attr for ultimate state, or default to 'all'
		var finalMedia = link.media || "all";

		function enableStylesheet(){
			link.media = finalMedia;
		}

		// bind load handlers to enable media
		if( link.addEventListener ){
			link.addEventListener( "load", enableStylesheet );
		} else if( link.attachEvent ){
			link.attachEvent( "onload", enableStylesheet );
		}

		// Set rel and non-applicable media type to start an async request
		// note: timeout allows this to happen async to let rendering continue in IE
		setTimeout(function(){
			link.rel = "stylesheet";
			link.media = "only x";
		});
		// also enable media after 3 seconds,
		// which will catch very old browsers (android 2.x, old firefox) that don't support onload on link
		setTimeout( enableStylesheet, 3000 );
	};

	// loop through link elements in DOM
	rp.poly = function(){
		// double check this to prevent external calls from running
		if( rp.support() ){
			return;
		}
		var links = w.document.getElementsByTagName( "link" );
		for( var i = 0; i < links.length; i++ ){
			var link = links[ i ];
			// qualify links to those with rel=preload and as=style attrs
			if( link.rel === "preload" && link.getAttribute( "as" ) === "style" && !link.getAttribute( "data-loadcss" ) ){
				// prevent rerunning on link
				link.setAttribute( "data-loadcss", true );
				// bind listeners to toggle media back
				rp.bindMediaToggle( link );
			}
		}
	};

	// if unsupported, run the polyfill
	if( !rp.support() ){
		// run once at least
		rp.poly();

		// rerun poly on an interval until onload
		var run = w.setInterval( rp.poly, 500 );
		if( w.addEventListener ){
			w.addEventListener( "load", function(){
				rp.poly();
				w.clearInterval( run );
			} );
		} else if( w.attachEvent ){
			w.attachEvent( "onload", function(){
				rp.poly();
				w.clearInterval( run );
			} );
		}
	}


	// commonjs
	if( typeof exports !== "undefined" ){
		exports.loadCSS = loadCSS;
	}
	else {
		w.loadCSS = loadCSS;
	}
}( typeof global !== "undefined" ? global : this ) );
</script>

    <link rel="icon" href= "/assets/favicon.ico" />
    <link rel="preload" href="https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.min.js" as="script" />
    <link rel="preload" href="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js" as="script" />
    <link rel="preload" href="/scripts/main.js" as="script" />
    <link rel="preload" as="font" href="/font/Oswald-Regular.ttf" crossorigin>
    <link rel="preload" as="font" href="https://at.alicdn.com/t/font_327081_1dta1rlogw17zaor.woff" crossorigin>
    
    <!-- fancybox -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.js" defer></script>
    <!-- 百度统计  -->
    
    <!-- 谷歌统计  -->
    
</head>

    
        <body class="post-body">
    
    
<header class="header">

    <div class="read-progress"></div>
    <div class="header-sidebar-menu">&#xe775;</div>
    <!-- post页的toggle banner  -->
    
    <div class="banner">
            <div class="blog-title">
                <a href="/" >XShandow&#39;s Studio</a>
            </div>
            <div class="post-title">
                <a href="#" class="post-name">[记]PKCS#1 RSA算法标准—OIDs类型标识定义</a>
            </div>
    </div>
    
    <a class="home-link" href=/>XShandow's Studio</a>
</header>
    <div class="wrapper">
        <div class="site-intro" style=








height:40vh;

>
    
    <!-- 主页  -->
    
    
    <!-- 404页  -->
            
    <div class="site-intro-placeholder"></div>
    <div class="site-intro-img" style="background-image: url(/intro/post-bg.jpg)"></div>
    <div class="site-intro-meta">
        <!-- 标题  -->
        <h1 class="intro-title">
            <!-- 主页  -->
            
            [记]PKCS#1 RSA算法标准—OIDs类型标识定义
            <!-- 404 -->
            
        </h1>
        <!-- 副标题 -->
        <p class="intro-subtitle">
            <!-- 主页副标题  -->
            
            
            <!-- 404 -->
            
        </p>
        <!-- 文章页meta -->
        
            <div class="post-intros">
                <!-- 文章页标签  -->
                
                    <div class= post-intro-tags >
    
        <a class="post-tag" href="javascript:void(0);" data-tags = "PKCS">PKCS</a>
    
</div>
                
                
                    <div class="post-intro-read">
                        <span>Word count: <span class="post-count">1,286</span> / Reading time: <span class="post-count">6 min</span></span>
                    </div>
                
                <div class="post-intro-meta">
                    <span class="post-intro-calander iconfont-archer">&#xe676;</span>
                    <span class="post-intro-time">2018/08/13</span>
                    
                    <span id="busuanzi_container_page_pv" class="busuanzi-pv">
                        <span class="iconfont-archer">&#xe602;</span>
                        <span id="busuanzi_value_page_pv"></span>
                    </span>
                    
                    <span class="shareWrapper">
                        <span class="iconfont-archer shareIcon">&#xe71d;</span>
                        <span class="shareText">Share</span>
                        <ul class="shareList">
                            <li class="iconfont-archer share-qr" data-type="qr">&#xe75b;
                                <div class="share-qrcode"></div>
                            </li>
                            <li class="iconfont-archer" data-type="weibo">&#xe619;</li>
                            <li class="iconfont-archer" data-type="qzone">&#xe62e;</li>
                            <li class="iconfont-archer" data-type="twitter">&#xe634;</li>
                            <li class="iconfont-archer" data-type="facebook">&#xe67a;</li>
                        </ul>
                    </span>
                </div>
            </div>
        
    </div>
</div>
        <script>
 
  // get user agent
  var browser = {
    versions: function () {
      var u = window.navigator.userAgent;
      return {
        userAgent: u,
        trident: u.indexOf('Trident') > -1, //IE内核
        presto: u.indexOf('Presto') > -1, //opera内核
        webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
        gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
        mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
        ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
        android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
        iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者安卓QQ浏览器
        iPad: u.indexOf('iPad') > -1, //是否为iPad
        webApp: u.indexOf('Safari') == -1, //是否为web应用程序，没有头部与底部
        weixin: u.indexOf('MicroMessenger') == -1, //是否为微信浏览器
        uc: u.indexOf('UCBrowser') > -1 //是否为android下的UC浏览器
      };
    }()
  }
  console.log("userAgent:" + browser.versions.userAgent);

  // callback
  function fontLoaded() {
    console.log('font loaded');
    if (document.getElementsByClassName('site-intro-meta')) {
      document.getElementsByClassName('intro-title')[0].classList.add('intro-fade-in');
      document.getElementsByClassName('intro-subtitle')[0].classList.add('intro-fade-in');
      var postIntros = document.getElementsByClassName('post-intros')[0]
      if (postIntros) {
        postIntros.classList.add('post-fade-in');
      }
    }
  }

  // UC不支持跨域，所以直接显示
  function asyncCb(){
    if (browser.versions.uc) {
      console.log("UCBrowser");
      fontLoaded();
    } else {
      WebFont.load({
        custom: {
          families: ['Oswald-Regular']
        },
        loading: function () {  //所有字体开始加载
          // console.log('loading');
        },
        active: function () {  //所有字体已渲染
          fontLoaded();
        },
        inactive: function () { //字体预加载失败，无效字体或浏览器不支持加载
          console.log('inactive: timeout');
          fontLoaded();
        },
        timeout: 5000 // Set the timeout to two seconds
      });
    }
  }

  function asyncErr(){
    console.warn('script load from CDN failed, will load local script')
  }

  // load webfont-loader async, and add callback function
  function async(u, cb, err) {
    var d = document, t = 'script',
      o = d.createElement(t),
      s = d.getElementsByTagName(t)[0];
    o.src = u;
    if (cb) { o.addEventListener('load', function (e) { cb(null, e); }, false); }
    if (err) { o.addEventListener('error', function (e) { err(null, e); }, false); }
    s.parentNode.insertBefore(o, s);
  }

  var asyncLoadWithFallBack = function(arr, success, reject) {
      var currReject = function(){
        reject()
        arr.shift()
        if(arr.length)
          async(arr[0], success, currReject)
        }

      async(arr[0], success, currReject)
  }

  asyncLoadWithFallBack([
    "https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.min.js", 
    "https://cdn.bootcss.com/webfont/1.6.28/webfontloader.js",
    "/lib/webfontloader.min.js"
  ], asyncCb, asyncErr)
</script>        
        <img class="loading" src="/assets/loading.svg" style="display: block; margin: 6rem auto 0 auto; width: 6rem; height: 6rem;" />
        <div class="container container-unloaded">
            <main class="main post-page">
    <article class="article-entry">
        <p><strong>References:</strong></p>
<ul>
<li><a href="https://tools.ietf.org/pdf/rfc3447.pdf" target="_blank" rel="noopener">PKCS #1: RSA Cryptography Specifications Version 2.1</a></li>
</ul>
<h1 id="PKCS-1-V2-1-RSA算法标准——OIDs类型标识定义"><a href="#PKCS-1-V2-1-RSA算法标准——OIDs类型标识定义" class="headerlink" title="PKCS#1 V2.1 RSA算法标准——OIDs类型标识定义"></a>PKCS#1 V2.1 RSA算法标准——OIDs类型标识定义</h1><p>这里是对PKCS #1 OID的类型表示的定义：</p>
<pre><code> PKCS1Algorithms ALGORITHM-IDENTIFIER ::= {
     { OID rsaEncryption             PARAMETERS NULL } |
     { OID md2WithRSAEncryption     PARAMETERS NULL } |
     { OID md5WithRSAEncryption     PARAMETERS NULL } |
     { OID sha1WithRSAEncryption     PARAMETERS NULL } |
     { OID sha256WithRSAEncryption     PARAMETERS NULL } |
     { OID sha384WithRSAEncryption     PARAMETERS NULL } |
     { OID sha512WithRSAEncryption     PARAMETERS NULL } |
     { OID id-RSAES-OAEP             PARAMETERS RSAES-OAEP-params } |
     PKCS1PSourceAlgorithms |
     { OID id-RSASSA-PSS            PARAMETERS RSASSA-PSS-params } ,
     ... -- Allows for future expansion --
 }
</code></pre><h2 id="1-1-RSAES-OAEP"><a href="#1-1-RSAES-OAEP" class="headerlink" title="1.1 RSAES-OAEP"></a>1.1 RSAES-OAEP</h2><p>id-RSAES-OAEP 标识了RSAES-OAEP加密方案。</p>
<pre><code>id-RSAES-OAEP OBJECT IDENTIFIER ::= { pkcs-1 7 }
</code></pre><p>在类型AlgorithmIdentifier的值中，与这个OID相关的parameters域应该具有类型为RSAES-OAEP-params的值：</p>
<pre><code>RSAES-OAEP-params ::= SEQUENCE {
    hashAlgorithm      [0] HashAlgorithm DEFAULT sha1,
    maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1,
    pSourceAlgorithm [2] PSourceAlgorithm DEFAULT pSpecifiedEmpty
}
</code></pre><p>类型RSAES-OAEP-params的域具有以下意义：</p>
<ul>
<li><p>hashAlgorithm 标识了散列函数。它应该是一个具有在OAEP-PSSDigestAlgorithms集合中OID的算法ID。</p>
<pre><code>  HashAlgorithm ::= AlgorithmIdentifier { 
      {OAEP-PSSDigestAlgorithms} 
  }

  OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= {
      { OID id-sha1     PARAMETERS NULL }|
      { OID id-sha256 PARAMETERS NULL }|
      { OID id-sha384 PARAMETERS NULL }|
      { OID id-sha512 PARAMETERS NULL },
      ... -- Allows for future expansion --
  }
</code></pre><p>  默认的散列函数是SHA-1：</p>
<pre><code>  sha1 HashAlgorithm ::= {
      algorithm id-sha1,
      parameters SHA1Parameters : NULL
  }
  SHA1Parameters ::= NULL
</code></pre></li>
<li><p>maskGenAlgorithm 标识掩模生成函数。它应该是一个具有属于PKCS1MGFAlgorithms集中OID的算法ID，对于这个版本来说，它应该由id-mgf1构成，以标识掩模生成函数MGF1。与id-mgf1联系的parameters域应该是一个具有属于OAEP-PSSDigestAlgorithms集的OID的算法ID，标识MGF1基于哪个散列函数。</p>
<pre><code>  MaskGenAlgorithm ::= AlgorithmIdentifier { 
      {PKCS1MGFAlgorithms} 
  }

  PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= {
      { OID id-mgf1 PARAMETERS HashAlgorithm },
      ... -- Allows for future expansion --
  }
</code></pre></li>
<li><p>pSourceAlgorithm 标识标签L的源(或值)。它应该是一个具有属于PKCS1PSourceAlgorithms集OID的算法标识，对这个版本来说，应该由id-pSpecified构成，指出这个标签被明确描述。与id-pSpecified联系的parameters域应该是一个类型为OCTET STRING的值，包含这个标签。这篇规范的先前版本中，使用的是术语“编码参数encoding parameters”而不是“标签”，从此就出现了下面这个类型的名称。</p>
<pre><code>  PSourceAlgorithm ::= AlgorithmIdentifier { 
      {PKCS1PSourceAlgorithms} 
  }

  PKCS1PSourceAlgorithms ALGORITHM-IDENTIFIER ::= {
      { OID id-pSpecified PARAMETERS EncodingParameters },
      ... -- Allows for future expansion --
  }

  id-pSpecified OBJECT IDENTIFIER ::= { pkcs-1 9 }

  EncodingParameters ::= OCTET STRING(SIZE(0..MAX))
</code></pre><p>  默认标签是一个空串（以至于lHash会包含空串的散列）：</p>
<pre><code>  pSpecifiedEmpty PSourceAlgorithm ::= {
      algorithm id-pSpecified,
      parameters EncodingParameters : emptyString
  }
  emptyString EncodingParameters ::= &#39;&#39;H
</code></pre><p>  如果RSAES-OAEP-params中的域都使用了默认值，那么算法标识将具有以下的值：</p>
<pre><code>  rSAES-OAEP-Default-Identifier RSAES-AlgorithmIdentifier ::= {
      algorithm id-RSAES-OAEP,
      parameters RSAES-OAEP-params : {
          hashAlgorithm sha1,
          maskGenAlgorithm mgf1SHA1,
          pSourceAlgorithm pSpecifiedEmpty
      }
  }

  RSAES-AlgorithmIdentifier ::= AlgorithmIdentifier { 
      {PKCS1Algorithms} 
  }
</code></pre></li>
</ul>
<h2 id="1-2-RSAES-PKCS1-v1-5"><a href="#1-2-RSAES-PKCS1-v1-5" class="headerlink" title="1.2 RSAES-PKCS1-v1_5"></a>1.2 RSAES-PKCS1-v1_5</h2><p>对象标识rsaEncryption标识RSAES-PKCS1-v1_5加密方案。在类型为AlgorithmIdentifier的值中与这个OID联系的parameters域应该具有一个类型为NULL的值。这与PKCS #1 v1.5中的一样。</p>
<pre><code>rsaEncryption OBJECT IDENTIFIER ::= { pkcs-1 1 }
</code></pre><h2 id="1-3-RSASSA-PSS"><a href="#1-3-RSASSA-PSS" class="headerlink" title="1.3 RSASSA-PSS"></a>1.3 RSASSA-PSS</h2><p>对象标识id-RSASSA-PSS标识加密方案。</p>
<pre><code>id-RSASSA-PSS OBJECT IDENTIFIER ::= { pkcs-1 10 }
</code></pre><p>在类型为AlgorithmIdentifier的值中与这个OID相联系的parameters域应该具有一个类型为RSASSA-PSS-params的值：</p>
<pre><code>RSASSA-PSS-params ::= SEQUENCE {
    hashAlgorithm      [0] HashAlgorithm DEFAULT sha1,
    maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1,
    saltLength          [2] INTEGER DEFAULT 20,
    trailerField      [3] TrailerField DEFAULT trailerFieldBC
}
</code></pre><p>类型RSASSA-PSS-params的各域具有以下意义：</p>
<ul>
<li>hashAlgorithm 标识散列函数。它应该是一个具有属于OAEP-PSSDigestAlgorithms集OID的算法ID。默认的散列函数是SHA-1。</li>
<li>maskGenAlgorithm 标识掩模生成函数。它应该是一个具有一个属于PKCS1MGFAlgorithms集OID的算法ID。默认的掩模生成函数是一个基于SHA-1的MGF1。对于MGF1（更一般地，对于基于一个散列函数地掩模生成函数）建议基础散列函数与hashAlgorithm标识的散列函数一样；</li>
<li>saltLength 是salt的八位组长度。它应该是个整数。对于一个给定的hashAlgorithm，saltLength的默认值是这个散列值的八位组长度。saltLength不像类型RSASSA-PSS-params的其它域，它的值对指定的RSA密钥对来说不需要是固定值。</li>
<li><p>trailerField 是尾部域数字，为了与草案IEEE P1363a兼容。对于本文档的版本它应该是1，这表示尾部域是十六进制值0xbc。本篇文档不支持其它尾部域(包括IEEE P1363a中的尾部域HashID || 0xcc）。</p>
<pre><code>  TrailerField ::= INTEGER { trailerFieldBC(1) }
</code></pre><p>  如果hashAlgorithm、maskGenAlgorithm和RSASSA-PSS-params的trailerField域使用默认值，那么算法标识将具有以下值：</p>
<pre><code>  rSASSA-PSS-Default-Identifier RSASSA-AlgorithmIdentifier ::= {
      algorithm id-RSASSA-PSS,
      parameters RSASSA-PSS-params : {
          hashAlgorithm sha1,
          maskGenAlgorithm mgf1SHA1,
          saltLength 20,
          trailerField trailerFieldBC
      }
  }

  RSASSA-AlgorithmIdentifier ::= AlgorithmIdentifier { 
      {PKCS1Algorithms} 
  }
</code></pre></li>
</ul>
<h2 id="1-3-RSASSA-PKCS1-v1-5"><a href="#1-3-RSASSA-PKCS1-v1-5" class="headerlink" title="1.3 RSASSA-PKCS1-v1_5"></a>1.3 RSASSA-PKCS1-v1_5</h2><p>下面是RSASSA-PKCS1-v1_5的对象标识。OID的选择依赖于散列算法的选择：MD2、MD5、SHA-1、SHA-256、SHA-384或者 SHA-512。注意如果采用了MD2或者MD5，那么这个OID就和PKCS#1 v1.5中的一样。对于每个OID，在类型为AlgorithmIdentifier的值中，与这个OID相联系的parameters域应该具有一个类型为NULL的值。应该依照下表选择这个OID：</p>
<pre><code>Hash algorithm        OID
----------------------------------------------------------
MD2                    md2WithRSAEncryption ::= {pkcs-1 2}
MD5                    md5WithRSAEncryption ::= {pkcs-1 4}
SHA-1                sha1WithRSAEncryption ::= {pkcs-1 5}
SHA-256                sha256WithRSAEncryption ::= {pkcs-1 11}
SHA-384                sha384WithRSAEncryption ::= {pkcs-1 12}
SHA-512                sha512WithRSAEncryption ::= {pkcs-1 13}
</code></pre><p>EMSA-PKCS1-v1_5编码方法包括一个类型为DigestInfo的ASN.1值，其中类型DigestInfo具有语法</p>
<pre><code>DigestInfo ::= SEQUENCE {
    digestAlgorithm DigestAlgorithm,
    digest OCTET STRING
}
</code></pre><p>digestAlgorithm 标识散列函数且应是一个具有属于PKCS1-v1-5DigestAlgorithms集OID的算法ID。</p>
<pre><code>DigestAlgorithm ::= AlgorithmIdentifier { 
    {PKCS1-v1-5DigestAlgorithms} 
}

PKCS1-v1-5DigestAlgorithms ALGORITHM-IDENTIFIER ::= {
    { OID id-md2 PARAMETERS NULL }|
    { OID id-md5 PARAMETERS NULL }|
    { OID id-sha1 PARAMETERS NULL }|
    { OID id-sha256 PARAMETERS NULL }|
    { OID id-sha384 PARAMETERS NULL }|
    { OID id-sha512 PARAMETERS NULL }
}
</code></pre>
    </article>
    <!-- license  -->
    
        <div class="license-wrapper">
            <p>原文作者: <a href="https://xshandow.gitee.io">XShandow</a>
            <p>原文链接: <a href="https://xshandow.gitee.io/2018/08/[记]6.PKCS1 OIDs标识定义.html">https://xshandow.gitee.io/2018/08/[记]6.PKCS1 OIDs标识定义.html</a>
            <p>发表日期: <a href="https://xshandow.gitee.io/2018/08/[记]6.PKCS1 OIDs标识定义.html">August 13th 2018, 11:45:50 am</a>
            <p>版权声明: 本文采用<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">知识共享署名-非商业性使用 4.0 国际许可协议</a>进行许可</p>
        </div>
    
    <!-- paginator  -->
    <ul class="post-paginator">
        <li class="next">
            
                <div class="nextSlogan">Next Post</div>
                <a href= "/2018/08/IntelliJ IDEA 使用技巧.html" title= IntelliJ IDEA 使用技巧记录 >
                    <div class="nextTitle">IntelliJ IDEA 使用技巧记录</div>
                </a>
            
        </li>
        <li class="previous">
            
                <div class="prevSlogan">Previous Post</div>
                <a href= "/2018/08/[记]5.PKCS1 签名编码.html" title= [记]PKCS#1 RSA算法标准—签名编码 >
                    <div class="prevTitle">[记]PKCS#1 RSA算法标准—签名编码</div>
                </a>
            
        </li>
    </ul>
    <!-- 评论插件 -->
    <!-- 来必力City版安装代码 -->

<!-- City版安装代码已完成 -->
    
    
    <!--PC和WAP自适应版-->

    <!--PC版-->


    
    
    <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
    <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
    <div id="comment"></div>
    <script>
    new Valine({
        el: '#comment' ,
        notify:false, 
        verify:false, 
        appId: "9AJESICvl0DlCcGMCDj0e0aK-gzGzoHsz",
        appKey: "77q2IUvfKiBBbRD9XRXGSPlv",
        placeholder: "提出你的问题吧....",
        path:window.location.pathname, 
        avatar:'mm' 
    });
    </script>


    <!-- 评论 -->
</main>
            <!-- profile -->
            
        </div>
        <footer class="footer footer-unloaded">
    <!-- social  -->
    
    <div class="social">
        
    
        
            
                <a href="mailto:978650866@qq.com" class="iconfont-archer email" title=email ></a>
            
        
    
        
            
                <a href="//github.com/XShandow" class="iconfont-archer github" target="_blank" title=github></a>
            
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
    
        
            
                <a href="/atom.xml" class="iconfont-archer rss" target="_blank" title=rss></a>
            
        
    

    </div>
    
    <!-- powered by Hexo  -->
    <div class="copyright">
        <span id="hexo-power">Powered by <a href="https://hexo.io/" target="_blank">Hexo</a></span><span class="iconfont-archer power">&#xe635;</span><span id="theme-info">theme <a href="https://github.com/fi3ework/hexo-theme-archer" target="_blank">Archer</a></span>
    </div>
    <!-- 不蒜子  -->
    
    <div class="busuanzi-container">
    
     
    <span id="busuanzi_container_site_pv">PV: <span id="busuanzi_value_site_pv"></span> :)</span>
    
    </div>
    
</footer>
    </div>
    <!-- toc -->
    
    <div class="toc-wrapper" style=
    







top:40vh;

    >
        <div class="toc-catalog">
            <span class="iconfont-archer catalog-icon">&#xe613;</span><span>CATALOG</span>
        </div>
        <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#PKCS-1-V2-1-RSA算法标准——OIDs类型标识定义"><span class="toc-number">1.</span> <span class="toc-text">PKCS#1 V2.1 RSA算法标准——OIDs类型标识定义</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#1-1-RSAES-OAEP"><span class="toc-number">1.1.</span> <span class="toc-text">1.1 RSAES-OAEP</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#1-2-RSAES-PKCS1-v1-5"><span class="toc-number">1.2.</span> <span class="toc-text">1.2 RSAES-PKCS1-v1_5</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#1-3-RSASSA-PSS"><span class="toc-number">1.3.</span> <span class="toc-text">1.3 RSASSA-PSS</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#1-3-RSASSA-PKCS1-v1-5"><span class="toc-number">1.4.</span> <span class="toc-text">1.3 RSASSA-PKCS1-v1_5</span></a></li></ol></li></ol>
    </div>
    
    <div class="back-top iconfont-archer">&#xe639;</div>
    <div class="sidebar sidebar-hide">
    <ul class="sidebar-tabs sidebar-tabs-active-0">
        <li class="sidebar-tab-archives"><span class="iconfont-archer">&#xe67d;</span><span class="tab-name">Archive</span></li>
        <li class="sidebar-tab-tags"><span class="iconfont-archer">&#xe61b;</span><span class="tab-name">Tag</span></li>
        <li class="sidebar-tab-categories"><span class="iconfont-archer">&#xe666;</span><span class="tab-name">Cate</span></li>
    </ul>
    <div class="sidebar-content sidebar-content-show-archive">
          <div class="sidebar-panel-archives">
    <!-- 在ejs中将archive按照时间排序 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="total-and-search">
        <div class="total-archive">
        Total : 25
        </div>
        <!-- search  -->
        
    </div>
    
    <div class="post-archive">
    
    
    
    
    <div class="archive-year"> 2018 </div>
    <ul class="year-list">
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">11/02</span><a class="archive-post-title" href= "/2018/11/CVV计算.html" >[记]CVV计算</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">10/02</span><a class="archive-post-title" href= "/2018/10/初探Gradle.html" >初探Gradle</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">09/02</span><a class="archive-post-title" href= "/2018/09/《软技能》读书笔记.html" >《软技能》读书笔记</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">09/02</span><a class="archive-post-title" href= "/2018/09/GradleWrapper.html" >Gradle Wrapper</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">09/01</span><a class="archive-post-title" href= "/2018/09/UnknowSource.html" >Unknow Source问题</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/29</span><a class="archive-post-title" href= "/2018/08/java.security.Provider.html" >java.security.Provider 源码学习笔记</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/25</span><a class="archive-post-title" href= "/2018/08/javax.crypto.Cipher.html" >javax.crypto.Cipher 源码学习笔记</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/14</span><a class="archive-post-title" href= "/2018/08/IntelliJ IDEA 使用技巧.html" >IntelliJ IDEA 使用技巧记录</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/13</span><a class="archive-post-title" href= "/2018/08/[记]6.PKCS1 OIDs标识定义.html" >[记]PKCS#1 RSA算法标准—OIDs类型标识定义</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/12</span><a class="archive-post-title" href= "/2018/08/[记]5.PKCS1 签名编码.html" >[记]PKCS#1 RSA算法标准—签名编码</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/11</span><a class="archive-post-title" href= "/2018/08/[记]4.PKCS1 签名方案.html" >[记]PKCS#1 RSA算法标准—签名方案</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/10</span><a class="archive-post-title" href= "/2018/08/[记]3.PKCS1 加密编码.html" >[记]PKCS#1 RSA算法标准—加密编码</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/09</span><a class="archive-post-title" href= "/2018/08/[记]2.PKCS1 加密方案.html" >[记]PKCS#1 RSA算法标准—加密方案</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">08/08</span><a class="archive-post-title" href= "/2018/08/[记]1.PKCS1 密钥和原语 .html" >[记]PKCS#1 RSA算法标准—密钥和原语</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/19</span><a class="archive-post-title" href= "/2018/03/JCE Provider如何实现.html" >[译]如何在JCA中实现Provider</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/15</span><a class="archive-post-title" href= "/2018/03/JCA Guide Charpter6 Appendix.html" >[译]JCA参考指南(六)：附录</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/14</span><a class="archive-post-title" href= "/2018/03/JCA Guide Charpter5 CodeExamples.html" >[译]JCA参考指南(五)：代码示例</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/14</span><a class="archive-post-title" href= "/2018/03/JCA Guide Charpter4 Cryptographic Restrictions.html" >[译]JCA参考指南(四)：如何使应用程序“免于”加密限制</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/13</span><a class="archive-post-title" href= "/2018/03/JCA Guide Charpter3 JCA in SSL TLS.html" >[译]JCA参考指南(三)：如何SSL/TLS实现中使用JCA</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/13</span><a class="archive-post-title" href= "/2018/03/JCA Guide Charpter2 Core Class and Interfaces.html" >[译]JCA参考指南(二)：核心类和接口</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/05</span><a class="archive-post-title" href= "/2018/03/JCA Guide Charpter1 Introduction.html" >[译]JCA参考指南(一)：介绍</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/04</span><a class="archive-post-title" href= "/2018/03/MiJia LED 写字灯.html" >MIJIA 小米生态链LED写字灯开箱测评</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/03</span><a class="archive-post-title" href= "/2018/03/Spring Boot and JavaFX8.html" >[译]Spring Boot and JavaFX</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/02</span><a class="archive-post-title" href= "/2018/03/Hexo Problem.html" >Hexo安装踩坑记录</a>
        </li>
    
    
        <li class="archive-post-item">
            <span class="archive-post-date">03/02</span><a class="archive-post-title" href= "/2018/03/Logitech  K800.html" >Logitech K800 键盘开箱以及使用感受</a>
        </li>
    
    </div>
  </div>
        <div class="sidebar-panel-tags">
    <div class="sidebar-tags-name">
    
        <span class="sidebar-tag-name" data-tags="记录"><span class="iconfont-archer">&#xe606;</span>记录</span>
    
        <span class="sidebar-tag-name" data-tags="Gradle"><span class="iconfont-archer">&#xe606;</span>Gradle</span>
    
        <span class="sidebar-tag-name" data-tags="JCE"><span class="iconfont-archer">&#xe606;</span>JCE</span>
    
        <span class="sidebar-tag-name" data-tags="测评"><span class="iconfont-archer">&#xe606;</span>测评</span>
    
        <span class="sidebar-tag-name" data-tags="PKCS"><span class="iconfont-archer">&#xe606;</span>PKCS</span>
    
        <span class="sidebar-tag-name" data-tags="JavaFX"><span class="iconfont-archer">&#xe606;</span>JavaFX</span>
    
    </div>
    <div class="iconfont-archer sidebar-tags-empty">&#xe678;</div>
    <div class="tag-load-fail" style="display: none; color: #ccc; font-size: 0.6rem;">
    缺失模块。<br/>
    1、请确保node版本大于6.2<br/>
    2、在博客根目录（注意不是archer根目录）执行以下命令：<br/>
    <span style="color: #f75357; font-size: 1rem; line-height: 2rem;">npm i hexo-generator-json-content --save</span><br/>
    3、在根目录_config.yml里添加配置：
    <pre style="color: #787878; font-size: 0.6rem;">
jsonContent:
  meta: false
  pages: false
  posts:
    title: true
    date: true
    path: true
    text: false
    raw: false
    content: false
    slug: false
    updated: false
    comments: false
    link: false
    permalink: false
    excerpt: false
    categories: true
    tags: true</pre>
    </div> 
    <div class="sidebar-tags-list"></div>
</div>
        <div class="sidebar-panel-categories">
    <div class="sidebar-categories-name">
    
        <span class="sidebar-category-name" data-categories="RFC"><span class="iconfont-archer">&#xe60a;</span>RFC</span>
    
        <span class="sidebar-category-name" data-categories="软件"><span class="iconfont-archer">&#xe60a;</span>软件</span>
    
        <span class="sidebar-category-name" data-categories="Java"><span class="iconfont-archer">&#xe60a;</span>Java</span>
    
        <span class="sidebar-category-name" data-categories="生活"><span class="iconfont-archer">&#xe60a;</span>生活</span>
    
    </div>
    <div class="iconfont-archer sidebar-categories-empty">&#xe678;</div>
    <div class="sidebar-categories-list"></div>
</div>
    </div>
</div> 
    <script>
    var siteMeta = {
        root: "/",
        author: "XShandow"
    }
</script>
    <!-- CDN failover -->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
    <script type="text/javascript">
        if (typeof window.$ === 'undefined')
        {
            console.warn('jquery load from jsdelivr failed, will load local script')
            document.write('<script src="/lib/jquery.min.js">\x3C/script>')
        }
    </script>
    <script src="/scripts/main.js"></script>
    <!-- algolia -->
    
    <!-- busuanzi  -->
    
    <script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    
    <!-- CNZZ  -->
    
    </div>
    <!-- async load share.js -->
    
        <script src="/scripts/share.js" async></script>    
     
    </body>
</html>


